package com.itheima.controller.bak;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * className: BookController
 * description:
 * date: 2023/2/20 0020-PM 10:13:48
 * <p>
 * project: springboot
 * package: com.itheima.controller
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
@RestController
@RequestMapping("/books")
public class BookController extends BaseClass {

    /**
     * 创建记录日志的对象
     */
    // private static final Logger log = LoggerFactory.getLogger(BookController.class);

    @GetMapping
    public String getById() {
        System.out.println("springboot is running...2");

        BaseClass.log.debug("debug...");
        BaseClass.log.info("info...");
        BaseClass.log.warn("warn...");
        BaseClass.log.error("error...");

        return "springboot is running...2";
    }
}
